package com.winter;

import com.winter.util.SpringBeanUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.winter.mapper")
@ServletComponentScan
public class BootApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext run = SpringApplication.run(BootApplication.class, args);
		SpringBeanUtil.setApplicationContext(run);
	}
}
